<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableApplies extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('applies',function(Blueprint $table){

            $table->increments('id');
            $table->string('applyer_name');
            $table->string('stu_id');
            $table->string('phone');
            $table->string('email');
            $table->string('department');
            $table->string('meeting_subject');
            $table->string('file');
            $table->date('apply_time');
            $table->integer('day');
            $table->ipAddress('ip')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('applies');
    }
}
